################################################################################
#
# devmem2
#
###############################################################################
CPUFREQUTILS_VERSION = 008
CPUFREQUTILS_SITE = package/cpu-tools/cpufrequtils/cpufrequtils-$(CPUFREQUTILS_VERSION)
CPUFREQUTILS_SITE_METHOD = local

CPUFREQUTILS_MAKE_OPTS += \
	V=1 \
	CROSS="$(TARGET_CROSS)" \
	STRIPCMD="echo 'CP=cp'"

define CPUFREQUTILS_BUILD_CMDS
	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(CPUFREQUTILS_MAKE_OPTS)
endef

define CPUFREQUTILS_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 755 $(@D)/cpufreq-aperf $(TARGET_DIR)/usr/sbin/cpufreq-aperf
	$(INSTALL) -D -m 755 $(@D)/cpufreq-info $(TARGET_DIR)/usr/sbin/cpufreq-info
	$(INSTALL) -D -m 755 $(@D)/cpufreq-set $(TARGET_DIR)/usr/sbin/cpufreq-set
	$(INSTALL) -D -m 755 $(@D)/libcpufreq.so.0.0.0 $(TARGET_DIR)/usr/lib/libcpufreq.so.0.0.0
	ln -s libcpufreq.so.0.0.0 $(TARGET_DIR)/usr/lib/libcpufreq.so.0
	ln -s libcpufreq.so.0.0.0 $(TARGET_DIR)/usr/lib/libcpufreq.so
endef

$(eval $(generic-package))
